<template>
  <div class="errPage">
    <el-empty description="404页面问题">
      <el-button type="primary" @click="goback" class="back"
        >返回首页</el-button
      >
    </el-empty>
  </div>
</template>

<script setup lang="ts">
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
const goback = () => {
  router.push("/dashBoard");
};
</script>

<style lang="scss" scoped>
.errPage {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  .back {
    background-color: var(--el-color-primary);
  }
}
</style>
